using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Vod_Log - 视频播放日志 - 对象继承类
    /// </summary>
    [MetadataType(typeof(VodLogValidaTion))]
    public class VodLog : IVodLog<VodLog>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class VodLogValidaTion
       {

     

        /// <summary>
        /// 看片记录
        /// </summary>
        [Display(Name ="看片记录")]
        [Required]
        [StringLength(36)]
        public String LogId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否完成
        /// </summary>
        [Display(Name ="是否完成")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsOk
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 看片时长
        /// </summary>
        [Display(Name ="看片时长")]

        public DateTime SeeTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 本片时长
        /// </summary>
        [Display(Name ="本片时长")]

        public DateTime VodTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 最后一次浏览时间
        /// </summary>
        [Display(Name ="最后一次浏览时间")]

        public DateTime OverTime
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
